jQuery(document).ready(function(){
	jQuery('.form-login').css({
	    'margin-left':-(jQuery('.form-login').outerWidth()/2),
	    'margin-top':-(jQuery('.form-login').outerHeight()/1.25)
	});
	jQuery(window).resize(function () {
		jQuery('.form-login').css({
		    'margin-left':-(jQuery('.form-login').outerWidth()/2),
		    'margin-top':-(jQuery('.form-login').outerHeight()/1.25)
		});
	});
	jQuery('#admin_form_login_submit').click(function () {
	    var btn = jQuery(this)
	    btn.button('loading');
	    setTimeout(function () {
	        btn.button('reset');
	    }, 3000)
	});
	
	// hash password
    jQuery('#admin_form_login_submit').live('click', function() {
    	jQuery('#admin_form_login_submit').hashString(jQuery('#admin_form_login_password').val());
    });
});